package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.YsClassesMapper;
import com.csun.dsms.mapper.YsSettingMapper;
import com.csun.dsms.model.domain.YsClasses;
import com.csun.dsms.model.domain.YsSetting;
import com.csun.dsms.model.dto.ys.YsQueryDto;
import com.csun.dsms.service.YsClassesService;
import com.csun.dsms.service.YsSettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class YsSettingServiceImpl extends BaseService<YsSetting> implements YsSettingService {

    @Resource
    private YsSettingMapper ysSettingMapper;


    @Override
    public YsSetting queryBySchool(YsQueryDto ysQueryDto) {
        return ysSettingMapper.queryBySchool(ysQueryDto);
    }

    @Override
    public Integer updateSetting(YsSetting ysSetting) {
        return ysSettingMapper.updateSetting(ysSetting);
    }
}
